package cn.cxj.org.domain;

import cn.cxj.basic.domain.BaseDomain;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.models.auth.In;
import lombok.Data;

import java.util.Date;

/**
 * 店铺实体类
 * @author 陈鑫杰
 * @date 2022年1月23日21:46:21
 */
@Data
public class Shop extends BaseDomain {
    private String name;
    private String tel;
    private Date registerTime = new Date();
    private Integer state;
    private String address;
    private String logo;
    private Employee admin;

    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    public Date getRegisterTime() {
        return registerTime;
    }
}
